package com.itcat.service.impl;

import com.itcat.api.mysql.OmsOrderSettingApi;
import com.itcat.mysql.pojo.OmsOrderSetting;
import com.itcat.service.OmsOrderSettingService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class OmsOrderSettingServiceImpl implements OmsOrderSettingService {


    @DubboReference
    private OmsOrderSettingApi omsOrderSettingApi;

    /**
     * p   * 查询订单设置
     *
     * @param id
     * @return
     */
    public OmsOrderSetting findSetting(Integer id) {
        OmsOrderSetting omsOrderSetting = omsOrderSettingApi.findSetting(id);

        return omsOrderSetting;
    }

    /**
     * //修改订单设置
     *
     * @param omsOrderSetting
     */
    public void updateSetting(OmsOrderSetting omsOrderSetting) {
        omsOrderSettingApi.updateSetting(omsOrderSetting);
    }
}
